package com.itheima.sh.user.feign;

import com.itheima.sh.pojo.Order;
import com.itheima.sh.user.feign.fallback.IndentFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cloud-indent",fallback = IndentFeignFallback.class)
public interface IndentApi {
    // 请求参数和返回值和提供方一致
    @GetMapping("/indent/findOrderByUserId")
    public List<Order> findOrderByUserId(@RequestParam("username") String username);

}
